package com.up.vms.infrastructure.mvc;


import com.up.vms.infrastructure.mvc.dto.EdiHttpHeader;

import javax.validation.Valid;
import java.io.Serializable;

/**
 * Created by Andy on 2017/12/3.
 */
public abstract class AbstractRequest implements Serializable {

    private static final long serialVersionUID = 2495768164848811730L;

    //@Valid
    //private ReqHeader reqHeader;

    @Valid
    private EdiHttpHeader ediHttpHeader;

    /*
    public ReqHeader getReqHeader() {

        if (reqHeader == null)
            reqHeader = new ReqHeader();
        return reqHeader;
    }
    */

    /*
    public void setReqHeader(ReqHeader reqHeader) {

        this.reqHeader = reqHeader;
    }
    */

    public EdiHttpHeader getEdiHttpHeader() {

        if (ediHttpHeader == null)
            ediHttpHeader = new EdiHttpHeader();
        return ediHttpHeader;
    }

    public void setEdiHttpHeader(EdiHttpHeader ediHttpHeader) {
        this.ediHttpHeader = ediHttpHeader;
    }

    @Override
    public String toString() {
        return "ediHttpHeader="+ediHttpHeader.toString()+"]";
    }


}
